<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>临时交易车辆信息</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=yes" name="format-detection" />
    <link href="<%=basepath%>css/index.css" rel="stylesheet" type="text/css">
    <link href="<%=basepath%>css/parking.css" rel="stylesheet" type="text/css">
    <script src="<%=basepath%>js/jquery-1.8.3.min.js"></script>
    <script src="<%=basepath%>js/layer/layer.js"></script>
</head>
<body>
<div class="viewport">
    <div class="header">
       <div class="header-1">
           <a href="javascrpt:void(0)" id="join" class="header-2">
              <span id="account" class="account">${empty user.realName ? '' : user.realName}</span>&nbsp;&nbsp;<span id="deptName" class="deptName">${user.departmentName}</span>
           </a>
           <a href="/wape-web/api/core/centerService?serviceCode=WJ9999&targetURL=yuexi&prefix=3g_mmzs&entrance=yes" class="back" id="back">返回</a>
           <span class="span-num">WWP21500</span>
       </div>
    </div>
    <form method="post" id="myForm" action="/wape-web/api/core/centerService">
        <div class="blank"></div>
        <div class="content m-top">
            <input type="hidden" name="serviceCode" value="MMZS204" />
            <input type="hidden" name="storeId" value="${store.fatherId}" />
            <input type="hidden" name="sonStoreId" value="${store.departmentId}" />
            <div class="content2-2"><div class="content2-2-1"><span class="span-1">现场准备的车位信息：</span></div></div>
            <div class="content2-1">
                <div class="content2-1-1">
                    <table>
                        <tr>
                            <td class="td-1">棚位分区：</td>
                            <td class="td-2">${store.fatherName}</td>
                            <td class="td-3">编号：</td>
                            <td class="td-4">${store.sonDepart}</td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="blank"></div>
            <input type="hidden" name="inRecordNum" value="${oldStore.inRecordNum}" />
            <input type="hidden" name="oldStoreId" value="${oldStore.storeId}" />
            <input type="hidden" name="oldSonStoreId" value="${oldStore.sonStoreId}" />
            <div class="content2-2"><div class="content2-2-1"><span class="span-1">原始进场信息：</span></div></div>
            <div style="opacity: 0.6;">
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">棚位分区：</td>
                                <td class="td-2">${oldStore.storeName}</td>
                                <td class="td-3">编号：</td>
                                <td class="td-4">${oldStore.sonStoreName}</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="content2-2"><div class="content2-2-1"><span class="span-1">车辆进场情况：</span><span class="span-2" id="sj">${oldStore.dispatcherDay } ${oldStore.dispatcherTime}</span></div></div>
                
                <c:if test="${oldStore.costType eq '10' }">
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">进场单号：</td>
                                <td>
	                                ${oldStore.inRecordNum }
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">车牌号码：</td>
                                <td>
                                    ${oldStore.plateNum }
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="hr"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">车辆类型：</td>
                                <td class="td-2">
                                     ${oldStore.carType}
                                </td>
                                <td class="td-3">吨位：</td>
                                <td class="td-4">
                                    ${oldStore.weightType}
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                </c:if>
                
                <c:if test="${oldStore.costType eq '30' or oldStore.costType eq '40'}">
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">承租人：</td>
                                <td>
                                    ${oldStore.plateNum }
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">联系电话：</td>
                                <td>
                                    <c:if test="${(fn:indexOf(oldStore.inRecordNum, 'tmp_') != -1) }">
                                    </c:if>
                                    <c:if test="${(fn:indexOf(oldStore.inRecordNum, '_time_') != -1) }">
                                    ${fn:substring(oldStore.inRecordNum, 0, fn:indexOf(oldStore.inRecordNum, '_time_'))}
                                    </c:if>
                                    <c:if test="${(fn:indexOf(oldStore.inRecordNum, 'tmp_') == -1) and (fn:indexOf(oldStore.inRecordNum, '_time_') == -1) }">
                                    ${oldStore.inRecordNum }
                                    </c:if>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                </c:if>
                
                <c:if test="${oldStore.costType eq '30'}">
                <div class="content2-3"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">收费标准：</td>
                                <td class="td-2">
                                    ${oldStore.rate}
                                </td>
                                <td class="td-5">元/天</td>
                                <td class="td-3">预计天数：</td>
                                <td class="td-4">
                                    ${oldStore.count}
                                </td>
                                <td class="td-6">天</td>
                            </tr>
                        </table>
                    </div>
                </div>
                </c:if>
                
                <c:if test="${oldStore.costType eq '40'}">
                <div class="content2-3"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">收费标准：</td>
                                <td class="td-2">
                                    ${oldStore.rate}
                                </td>
                                <td class="td-5">元/月</td>
                                <td class="td-3">租赁月数：</td>
                                <td class="td-4">
                                    ${oldStore.count}
                                </td>
                                <td class="td-6">月</td>
                            </tr>
                        </table>
                    </div>
                </div>
                </c:if>
                
                <div class="hr"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">应缴费用：</td>
                                <td class="td-2">
                                    ${oldStore.costs}
                                </td>
                                <td class="td-5">元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td class="td-3">优惠金额：</td>
                                <td class="td-4">
                                    ${oldStore.benefit}
                                </td>
                                <td class="td-6">元</td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="hr"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1">实缴费用：</td>
                                <td class="td-2">
                                    ${oldStore.payment}
                                </td>
                                <td class="td-5">元&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                <td class="td-3"></td>
                                <td class="td-4">
                                    <input type="text" class="input-2" disabled="disabled" style="border:none;">
                                </td>
                                <td class="td-6"></td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="content2-3"></div>
                <div class="blank"></div>
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1 bold">商品种类：</td>
                                <td class="td-2">
                                    ${oldStore.goodsKingdom}
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="hr"></div>
                <c:if test="${oldStore.costType ne '40' }">
                <div class="content2-1">
                    <div class="content2-1-1">
                        <table>
                            <tr>
                                <td class="td-1 bold">商品名称：</td>
                                <td>
                                    ${oldStore.goodsInfo}
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                </c:if>
                <div class="content2-2"><div class="content2-2-1"><span>其他备注情况</span></div></div>
                <div class="content2-4">
                    ${oldStore.remark}
                </div>
            </div>
        </div>
        <div class="blank"></div>
        <div class="content4-1"><input type="submit" class="submit-1"></div>
        <div class="space"></div>
    </form>
</div>
</body>
<script type="text/javascript">
    /*错误提示*/
    $(function(){
        var error = "${requestScope.returnMsg}";
        if(error != "" && error != "成功!"){
            layer.msg(error,{shadeClose:true,shade:0.1,time:2000});
        }
    });
</script>
</html>


